from rest_framework import serializers
from .models import Person
from ..common import utils


class PersonSerializer(serializers.ModelSerializer):
    class Meta:
        model = Person
        fields = ['id', 'name', 'phone', 'phone', 'wechat', 'email', 'photo']

    # def get_phone(self, obj):
    #     return utils.get_file_url(obj.photo)
